/*
 *	ckcore.h -- CKcore CPU sepecific defines
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  (C) Copyright 2004, Li Chunqiang (chunqiang_li@c-sky.com)
 *  (C) Copyright 2009, Hu Junshan (junshan_hu@c-sky.com)
 *  (C) Copyright 2009, C-SKY Microsystems Co., Ltd. (www.c-sky.com)
 *  
 */

#ifndef	_ASM_CKCORE_H_
#define	_ASM_CKCORE_H_

/*
 *	Define the processor support peripherals base address.
 *	This is generally setup by the boards start up code.
 */
#define	CK_MBAR	    0x00000000
#define	CK_MBAR2	0x80000000
#define	CK_IPSBAR	0x40000000

#if defined(CONFIG_CPU_CKCORE_MMU)
#undef CK_MBAR
#define	CK_MBAR	CK_IPSBAR
#endif

/*
 *	Define Board Bus clock frequency.
 */
#define CK_BUSCLK	CONFIG_APB_FREQ

/*
 *  Define the CPU Clock
 */
#define CK_CPU_CLOCK   CONFIG_CPU_CLOCK_FREQ

/*
 *	Define the Ram base address and Size
 */
#define CK_RAM_BASE 	CONFIG_RAM_BASE
#define CK_RAM_END	(CK_RAM_BASE + CONFIG_RAM_SIZE) 

#endif	/* _ASM_CKCORE_H_ */
